/*    */ package com.feeyin.radar.sys.service.impl;
/*    */ 
/*    */ import com.feeyin.radar.sys.dao.OperateDAO;
/*    */ import com.feeyin.radar.sys.model.Operate;
/*    */ import com.feeyin.radar.sys.service.OperateService;
/*    */ import java.util.List;
/*    */ 
/*    */ public class OperateServiceImpl
/*    */   implements OperateService
/*    */ {
/*    */   private OperateDAO operateDAO;
/*    */ 
/*    */   public OperateDAO getOperateDAO()
/*    */   {
/* 19 */     return this.operateDAO;
/*    */   }
/*    */ 
/*    */   public void setOperateDAO(OperateDAO operateDAO) {
/* 23 */     this.operateDAO = operateDAO;
/*    */   }
/*    */ 
/*    */   public List getOperates()
/*    */   {
/* 29 */     return null;
/*    */   }
/*    */ 
/*    */   public List getOperatesByActivity() {
/* 33 */     return this.operateDAO.getOperatesByActivity();
/*    */   }
/*    */ 
/*    */   public List getOperatesByFunctionId(Integer functionId) {
/* 37 */     return this.operateDAO.getOperatesByFunctionId(functionId);
/*    */   }
/*    */ 
/*    */   public List getOperatesByUserId(Integer userId) {
/* 41 */     return this.operateDAO.getOperatesByUserId(userId);
/*    */   }
/*    */ 
/*    */   public Operate getOperateByCode(String operateCode) {
/* 45 */     return this.operateDAO.getOperateByCode(operateCode);
/*    */   }
/*    */ 
/*    */   public Operate getOperate(Integer id) {
/* 49 */     return this.operateDAO.getOperate(id);
/*    */   }
/*    */ 
/*    */   public boolean isRepeatUpdateOperate(Operate operate) {
/* 53 */     if (operate == null) return false;
/*    */ 
/* 55 */     Operate oldOperate = new Operate();
/* 56 */     oldOperate = this.operateDAO.getOperate(operate.getId());
/*    */ 
/* 58 */     if (oldOperate == null) return false;
/* 59 */     if (!operate.getOperateCode().equals(oldOperate.getOperateCode())) {
/* 60 */       Operate otherOperate = new Operate();
/* 61 */       otherOperate = this.operateDAO.getOperateByCode(operate.getOperateCode());
/* 62 */       if (otherOperate != null) return true;
/*    */     }
/* 64 */     return false;
/*    */   }
/*    */ 
/*    */   public boolean insertOperate(Operate operate) {
/* 68 */     return this.operateDAO.insertOperate(operate);
/*    */   }
/*    */ 
/*    */   public boolean updateOperate(Operate operate) {
/* 72 */     return this.operateDAO.updateOperate(operate);
/*    */   }
/*    */ 
/*    */   public boolean deleteOperate(Integer id) {
/* 76 */     return this.operateDAO.deleteOperate(id);
/*    */   }
/*    */ }

/* Location:           C:\Users\e547415\MyProject\rone\WEB-INF\classes\
 * Qualified Name:     com.feeyin.radar.sys.service.impl.OperateServiceImpl
 * JD-Core Version:    0.6.0
 */